package cn.no7player.config;

import com.mangofactory.swagger.configuration.SpringSwaggerConfig;
import com.mangofactory.swagger.models.dto.ApiInfo;
import com.mangofactory.swagger.plugin.EnableSwagger;
import com.mangofactory.swagger.plugin.SwaggerSpringMvcPlugin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Configuration;

/**
 * 
 * 
 * TODO 对该类总结性的描述
 * 
 * @ClassName: SwaggerConfig 
 * @author Zhang_Java
 * @date 2017年6月4日 下午5:41:34
 * @version V2.0 
 *
 */
//@Configuration
//@EnableSwagger
//@EnableAutoConfiguration
//public class SwaggerConfig
//{
//
//    private SpringSwaggerConfig springSwaggerConfig;
//
//    @Autowired
//    public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
//        this.springSwaggerConfig = springSwaggerConfig;
//    }
//
//
//    public SwaggerSpringMvcPlugin customImplementation(){
//        return  new SwaggerSpringMvcPlugin(this.springSwaggerConfig)
//                .apiInfo(new ApiInfo("api", "desc", null, null, null, null))
//                .useDefaultResponseMessages(false)
//                .includePatterns("/users.*");
//    }
//}